package cn.com.taiji.oospub.wechat.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.github.dreamyoung.mprelation.EntityMapper;
import com.github.dreamyoung.mprelation.JoinColumn;
import com.github.dreamyoung.mprelation.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Calendar;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderDetailInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    @TableField("Order_Main_Id")
    private String orderMainId;
    @TableField(exist = false)
    @EntityMapper
    @ManyToOne
    @JoinColumn(name = "Order_Main_Id",referencedColumnName = "ID")
    private OrderMainInfo orderMain;

    @TableField("Price_Id")
    private String priceId;

    @TableField(exist = false)
    @EntityMapper
    @ManyToOne
    @JoinColumn(name = "price_Id",referencedColumnName = "ID")
    private FoodPriceInfo foodPrice;



    @TableField("Quantity")
    private Integer Quantity;

    @TableField("Price")
    private Double Price;

    @TableField("Remark")
    private String Remark;

    @TableField("Creator")
    private String Creator;

    @TableField("Create_Time")
    private Calendar createTime;

    private String supplierId;
    @TableField(exist = false)
    @EntityMapper
    @ManyToOne
    @JoinColumn(name = "supplier_id",referencedColumnName = "ID")
    private Supplier supplier;

    private String orderChildId;

    @TableField("commentStatus")
    private String commentStatus;

    private Boolean isEffective;

    private String creatorId;

}
